home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / util4 / tnmtr411.lha / TinyMeter / Install < prev    next >
Text File  |  1996-02-04  |  5KB  |  237 lines

  1. ; Installer Script for TinyMeter V4.0
  2.  
  3. (set @default-dest (""))
  4.  
  5. (set @cpu (database "cpu"))
  6.  
  7. (set @source-file "TinyMeter")
  8.  
  9. (if (= @cpu "68020")
  10.     (set @source-file "TinyMeter.020")
  11. )
  12.  
  13. (if (= @cpu "68030")
  14.     (set @source-file "TinyMeter.020")
  15. )
  16.  
  17. (if (= @cpu "68040")
  18.     (set @source-file "TinyMeter.020")
  19. )
  20.  
  21. (if (= @cpu "68060")
  22.     (set @source-file "TinyMeter.020")
  23. )
  24.  
  25. (set @destdir
  26.     (askdir
  27.         (prompt "Where should I copy the TinyMeter main program ?")
  28.         (help "SYS:WBStartup is the best place. Simply click proceed.")
  29.         (default "SYS:WBStartup/")
  30.     )
  31. )
  32.  
  33. (set @prefsdir
  34.     (askdir
  35.         (prompt "Where should I copy the TinyMeter preferences program?")
  36.         (help "SYS:Prefs is the best place, since TinyMeter can only call it, when its there.")
  37.         (default "SYS:Prefs/")
  38.     )
  39. )
  40.  
  41. (set langchoice
  42.     (askoptions
  43.         (prompt "Which languages should be installed?")
  44.         (help "Where's the problem?")
  45.         (choices "Deutsch" "Italiano" "Polski")
  46.         (default 0)
  47.     )
  48. )
  49.  
  50. (set iconchoice
  51.     (askchoice
  52.         (prompt "Which icons do you use")
  53.         (help "Where's the problem?")
  54.         (choices "MagicWB" "NewIcons")
  55.         (default 0)
  56.     )
  57. )
  58.  
  59. (set instchoice
  60.     (askoptions
  61.         (prompt "What should be installed?")
  62.         (help "Where's the problem?")
  63.         (choices "Example settings" "Fonts for Clocks" "Background patterns" "Documentation")
  64.         (default 8)
  65.     )
  66. )
  67.  
  68. (if (<> 0 (BITAND instchoice 8))
  69.     (set @helpdir
  70.         (askdir
  71.             (prompt "Where should the documentation be installed?")
  72.             (help "HELP: is the best place. Simply click proceed.")
  73.             (default "HELP:")
  74.         )
  75.     )
  76. )
  77.  
  78. (if (<> 0 (BITAND instchoice 2))
  79.     (set @fontdir
  80.         (askdir
  81.             (prompt "Where should the fonts be installed?")
  82.             (help "FONTS: is the best place. Simply click proceed.")
  83.             (default "FONTS:")
  84.         )
  85.     )
  86. )
  87.  
  88. (if (<> 0 (BITAND instchoice 2))
  89.     (set @dofixfont
  90.         (askbool
  91.             (prompt "Should I do FixFonts for you?")
  92.             (help "This is not important. Simply click no.")
  93.         )
  94.     )
  95. )
  96.  
  97. (if (<> 0 (BITAND instchoice 4))
  98.     (set @pattdir
  99.         (askdir
  100.             (prompt "Where should the background patterns be installed?\n (example settings-file uses SYS:Prefs/Patterns!)")
  101.             (help "SYS:Prefs/Patterns is the best place.")
  102.             (default "SYS:Prefs/")
  103.         )
  104.     )
  105. )
  106.  
  107. (copyfiles
  108.     (prompt "Installing the files." )
  109.     (help "Where's the problem?" )
  110.     (source @source-file )
  111.     (infos)
  112.     (newname "TinyMeter")
  113.     (dest @destdir)
  114. )
  115.  
  116. (copyfiles
  117.     (prompt "Installing TinyMeter.")
  118.     (help "Where's the problem?")
  119.     (source "Prefs/TinyMeter")
  120.     (infos)
  121.     (newname "TinyMeter")
  122.     (dest @prefsdir)
  123. )
  124.  
  125. (if (<> 0 (BITAND langchoice 1))
  126.     (copyfiles
  127.         (prompt "Installing catalog")
  128.         (help "Where's the problem?")
  129.         (source "Catalogs/deutsch/TinyMeterPrefs.catalog")
  130.         (dest "LOCALE:Catalogs/deutsch/")
  131.     )
  132. )
  133. (if (<> 0 (BITAND langchoice 2))
  134.     (copyfiles
  135.         (prompt "Installing catalog")
  136.         (help "Where's the problem?")
  137.         (source "Catalogs/italiano/TinyMeterPrefs.catalog")
  138.         (dest "LOCALE:Catalogs/italiano/")
  139.     )
  140. )
  141. (if (<> 0 (BITAND langchoice 4))
  142.     (copyfiles
  143.         (prompt "Installing catalog")
  144.         (help "Where's the problem?")
  145.         (source "Catalogs/polski/TinyMeterPrefs.catalog")
  146.         (dest "LOCALE:Catalogs/polski/")
  147.     )
  148. )
  149. (if (<> 0 (BITAND iconchoice 1))
  150.     (copyfiles
  151.         (prompt "Installing NewIcons")
  152.         (help "Where's the problem?")
  153.         (source "ArtWork/newicons/TinyMeter.info")
  154.         (dest @destdir)
  155.     )
  156. )
  157. (if (<> 0 (BITAND iconchoice 1))
  158.     (copyfiles
  159.         (prompt "Installing NewIcons")
  160.         (help "Where's the problem?")
  161.         (source "ArtWork/newicons/TinyMeterPrefs.info")
  162.         (newname "TinyMeter.info")
  163.         (dest @prefsdir)
  164.     )
  165. )
  166.  
  167. (if (<> 0 (BITAND instchoice 1))
  168.     (copyfiles
  169.         (prompt "Installing example settings-file in ENV:")
  170.         (help "Where's the problem?")
  171.         (source "Examples/MagicWB.tm")
  172.         (newname "TinyMeter")
  173.         (dest "ENV:")
  174.     )
  175. )
  176.  
  177. (if (<> 0 (BITAND instchoice 1))
  178.     (copyfiles
  179.         (prompt "Installing example settings-file in ENVARC:")
  180.         (help "Where's the problem?")
  181.         (source "Examples/MagicWB.tm")
  182.         (newname "TinyMeter")
  183.         (dest "ENVARC:")
  184.     )
  185. )
  186.  
  187. (if (<> 0 (BITAND instchoice 2))
  188.     (copyfiles
  189.         (prompt "Installing additional fonts.")
  190.         (help "Where's the problem?")
  191.         (source "ArtWork/Fonts/")
  192.         (all)
  193.         (dest @fontdir)
  194.     )
  195. )
  196.  
  197. (if (<> 0 (BITAND instchoice 2))
  198.     (if @dofixfont
  199.         (run "SYS:System/FixFonts"
  200.             (prompt "Doing FixFonts... May take a while...")
  201.             (help "Where's the problem?")
  202.         )
  203.     )
  204. )
  205.  
  206. (if (<> 0 (BITAND instchoice 4))
  207.     (copyfiles
  208.         (prompt "Installing additional background patterns.")
  209.         (help "Where's the problem?")
  210.         (source "ArtWork/Patterns/")
  211.         (all)
  212.         (dest @pattdir)
  213.     )
  214. )
  215.  
  216. (if (<> 0 (BITAND instchoice 8))
  217.     (copyfiles
  218.         (prompt "Installing documentation")
  219.         (help "Where's the problem?")
  220.         (source "TinyMeter.guide")
  221.         (infos)
  222.         (dest @helpdir)
  223.     )
  224. )
  225.  
  226. (copylib
  227.     (prompt "Installing screennotify.library")
  228.     (help "Where's the problem?")
  229.     (source "Libs/screennotify.library")
  230.     (dest "LIBS:")
  231.     (confirm)
  232. )
  233.  
  234. (exit
  235.     "Have phun with this nice piece of soft!!!\n\nNow you should start TinyMeter, setup the position and size and press S to save these settings.\n\nAfter that, start the TinyMeter preferences to setup TinyMeter to your personal taste.\n\nIf there are any problems, don't hesitate to contact the author!"
  236. )
  237.